/*
 * $Id: MagnetDataChannelDefList.java,v 1.1 2009/06/18 19:56:00 afaichun Exp $
 * 
 * Copyright (C) 2008 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */
package com.ge.healthcare.autosc.processor.shemjob.guidance.dataset;

public class MagnetDataChannelDefList {
    /**
     * The list of magnet data channel definitions.
     */
    private MagnetDataChannelDef[] theDefList = null;

    /**
     * Construct a magnet data channel definition list.
     *
     * @param defList The list of magnet data channel definitions.
     */
    public MagnetDataChannelDefList( MagnetDataChannelDef[] defList )
    {
        theDefList = defList;
    }

    /**
     * Get the channel definition list.
     *
     * @return The list of magnet data channel definitions.
     */
    public MagnetDataChannelDef[] getDefList()
    {
        return theDefList;
    }

    /**
     * Return a string representation of the object.
     *
     * @return A string representation of the object.
     */
    public String toString()
    {
        StringBuffer buffer = new StringBuffer();
        buffer.append( "{ " );
        for ( int idx = 0; idx < theDefList.length; idx += 1 )
        {
            if ( idx != 0 )
            {
                buffer.append( ", " );
            }
            buffer.append( theDefList[idx].toString() );
        }
        buffer.append( " }" );
        return buffer.toString();
    }
}
